'use strict';
var url = (function () {
	var _private = {
		cleandomain : function ( domain ) {
			var a = document.createElement("a"); 
			a.href = domain; 
			return a.hostname; 
			// var u = domain.replace('http://','').replace('https://','').split(/[/?#]/);
			// debugger;
			// return u;	
		}
	}; 	
	return {
		clean : function( url ) {
			return _private.cleandomain(url);
		}
	}
})(); 
